package com.gagakuai.demo.configde;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
 * @program: settement
 * @description:
 * @author: houhong
 * @create: 2022-11-13 15:14
 */
@Configuration
public class MainConfig {

    @Bean
    public Service3 service3() {
        Service3 service3 = new Service3();
        service3.setService4(service4());
        return service3;
    }

    @Bean
    public Service4 service4() {
        return new Service4();
    }


}